.class public Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$e;
.super Landroid/view/animation/Animation;
.source "ESFloatingActionButton.java"

# interfaces
.implements Landroid/view/animation/Animation$AnimationListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1
    name = "e"
.end annotation


# instance fields
.field private final a:F

.field private final b:F

.field private final c:F

.field private final d:F

.field private e:Landroid/graphics/Camera;

.field final synthetic f:Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;


# direct methods
.method public constructor <init>(Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;FFFF)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$e;->f:Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;

    invoke-direct {p0}, Landroid/view/animation/Animation;-><init>()V

    .line 2
    iput p2, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$e;->a:F

    .line 3
    iput p3, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$e;->b:F

    .line 4
    iput p4, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$e;->c:F

    .line 5
    iput p5, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$e;->d:F

    .line 6
    invoke-virtual {p0, p0}, Landroid/view/animation/Animation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V

    return-void
.end method


# virtual methods
.method protected applyTransformation(FLandroid/view/animation/Transformation;)V
    .locals 3

    .line 1
    iget v0, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$e;->a:F

    .line 2
    iget v1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$e;->b:F

    sub-float/2addr v1, v0

    mul-float v1, v1, p1

    add-float/2addr v0, v1

    .line 3
    iget p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$e;->c:F

    .line 4
    iget v1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$e;->d:F

    .line 5
    iget-object v2, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$e;->e:Landroid/graphics/Camera;

    .line 6
    invoke-virtual {p2}, Landroid/view/animation/Transformation;->getMatrix()Landroid/graphics/Matrix;

    move-result-object p2

    .line 7
    invoke-virtual {v2}, Landroid/graphics/Camera;->save()V

    .line 8
    invoke-virtual {v2, v0}, Landroid/graphics/Camera;->rotateY(F)V

    .line 9
    invoke-virtual {v2, p2}, Landroid/graphics/Camera;->getMatrix(Landroid/graphics/Matrix;)V

    .line 10
    invoke-virtual {v2}, Landroid/graphics/Camera;->restore()V

    neg-float v0, p1

    neg-float v2, v1

    .line 11
    invoke-virtual {p2, v0, v2}, Landroid/graphics/Matrix;->preTranslate(FF)Z

    .line 12
    invoke-virtual {p2, p1, v1}, Landroid/graphics/Matrix;->postTranslate(FF)Z

    return-void
.end method

.method public initialize(IIII)V
    .locals 0

    .line 1
    invoke-super {p0, p1, p2, p3, p4}, Landroid/view/animation/Animation;->initialize(IIII)V

    .line 2
    new-instance p1, Landroid/graphics/Camera;

    invoke-direct {p1}, Landroid/graphics/Camera;-><init>()V

    iput-object p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$e;->e:Landroid/graphics/Camera;

    return-void
.end method

.method public onAnimationEnd(Landroid/view/animation/Animation;)V
    .locals 1

    .line 1
    iget-object p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$e;->f:Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;

    invoke-static {p1}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->a(Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;)Z

    move-result p1

    if-eqz p1, :cond_0

    .line 2
    iget-object p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$e;->f:Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;

    invoke-static {p1}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->c(Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;)Z

    move-result v0

    xor-int/lit8 v0, v0, 0x1

    invoke-static {p1, v0}, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;->a(Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;Z)Z

    .line 3
    iget-object p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$e;->f:Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;

    invoke-virtual {p1}, Landroid/widget/ImageButton;->invalidate()V

    .line 4
    iget-object p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$e;->f:Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;

    const/4 v0, 0x0

    invoke-virtual {p1, v0}, Landroid/widget/ImageButton;->setFocusable(Z)V

    :cond_0
    return-void
.end method

.method public onAnimationRepeat(Landroid/view/animation/Animation;)V
    .locals 0

    return-void
.end method

.method public onAnimationStart(Landroid/view/animation/Animation;)V
    .locals 1

    .line 1
    iget-object p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$e;->f:Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;

    const/4 v0, 0x1

    invoke-virtual {p1, v0}, Landroid/widget/ImageButton;->setFocusable(Z)V

    .line 2
    iget-object p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$e;->f:Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;

    invoke-virtual {p1, v0}, Landroid/widget/ImageButton;->setFocusableInTouchMode(Z)V

    .line 3
    iget-object p1, p0, Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton$e;->f:Lcom/estrongs/android/ui/controller/widget/ESFloatingActionButton;

    invoke-virtual {p1}, Landroid/widget/ImageButton;->requestFocus()Z

    return-void
.end method
